import prompt from '@ohos.prompt';
import ajax2 from '../../http/http2';

export default {
    data: {
        params:{
            "productInfoId": "1",
            "category": "trigger",
            "propertyKey": "PM25",
            "propertyName": "PM2.5",
            "propertyValue": "80",
            "operator": ">=",
            "serviceId":"test_t",
            "commandName":"command_name"
        },
        title:""
    },
    onInit() {

    },

    addSence(){
        ajax2.post('/web/smart/device/scene/product/action/add',this.params,(result)=>{
            prompt.showToast({
                message:result.msg
            })
        });
    }
}
